TAGs: converting linear equations